Blazor IComponentTypeSwitchBroker

In Blazor, one can inject unique components as described here EXT_ComponentsBlazor

But you can also replace all or some components based on a Switch-logic you define yourself:

public interface IComponentTypeSwitchBroker
{
   Type SwitchThis(IMDCompHolder compholder,Type theType);
}

The assembly and type that implements this interface is then given in the SysMDrivenMiscSettingsSingleton property GlobalBlazorClientComponentOverride, in the same format as you do for EXT_ComponentsBlazor , namely:

AssemblyNameWithoutExtension;AdditionalAssemblyIfNeededWithoutExtension;AsManyAssembliesAsNeededWithoutExtension;TheTypeImplementing_IComponentTypeSwitchBroker
This page was edited 0 days ago on 03/13/2025. What links here